import {useTokenStore} from "@/Stores/token";
import request from '@/utils/request.js'
export const supplierListService =(params)=>{
    const tokenStore = useTokenStore();
    return request.get('/supplier',{params:params})
}
export  const updateSupplierService = (CustomerModel)=>{
    return request.put('/supplier',CustomerModel)
}
export  const AddSupplierService = (articleModel)=>{
    return request.post('/supplier',articleModel)
}
export const deleteSupplierService = (id)=>{
    return request.delete('/supplier?id='+id)
}